<ion-view id="detailaccount" view-title="明细账户列表" cache-view="false" align-title="center" hide-tabs>


    <ion-content class=" has-header" scroll="ture">


    <div class ="item">
        <table class ="table">
            <tr> <td  class="name-td"><span>账户名称</span></td> <td><span>{{ acctName }}</span></td></tr>
            <tr> <td  class="name-td"><span>账户</span></td> <td><span>{{ acctNo }}</span></td></tr>
            <tr> <td  class="name-td"><span>期初余额</span></td> <td><span>{{ detailaccountinfo.start }}</span></td></tr>
            <tr> <td  class="name-td"><span>期末余额</span></td> <td><span>{{ detailaccountinfo.amountBalance }}</span></td></tr>
            <tr> <td  class="name-td"><span>期总支出</span></td> <td><span>{{ detailaccountinfo.paymentAmount }}</span></td></tr>
            <tr> <td  class="name-td"><span>期总收入</span></td> <td><span>{{ detailaccountinfo.collectAmount }}</span></td></tr>

        </table>


    </div>

<div style ="margin-bottom: 20px">


        <div class="item" ng-repeat='item in detailaccountdata'>
            <table class="table">
                <tr>
                    <td class="name-td"><span>对方户名</span></td>
                    <td><span>{{ item.toAccountName }} </span></td>
                </tr>
                <tr>
                    <td class="name-td"><span>对方账户</span></td>
                    <td><span>{{ item.toAccount }}</span></td>
                </tr>
                <tr ng-if="item.paymentAmount!==0">
                    <td class="name-td"><span>支出</span></td>
                    <td><span> {{item.paymentAmount }}</span></td>
                </tr>
                <tr ng-if="item.collectAmount!==0">
                    <td class="name-td"><span>收入</span></td>
                    <td><span> {{ item.collectAmount }}</span></td>
                </tr>
                <tr>
                    <td class="name-td"><span>交易时间</span></td>
                    <td><span> {{ item.transDate.time| date:'yyyy-MM-dd HH:mm:ss' }}</span></td>
                </tr>
            </table>
        </div>
</div>

    </ion-content>
</ion-view>
